<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<!-- TemplateBeginEditable name="doctitle" -->
	<title>Cadastrar novo carro</title>
	<!-- TemplateEndEditable -->
	<!-- TemplateBeginEditable name="head" -->
	<!-- TemplateEndEditable -->	
	<link rel="stylesheet" href="style.css" type="text/css">
</head>

<body>
<%@page import='java.util.*' %>
<%@page import='org.dw.concessionaria.BEAN.MontadoraBEAN' %>

<div class="container">
  <div class="header"><a href="#"><img src="banner.jpg" alt="Insert Logo Here" name="Insert_logo" width="960" height="90" id="Insert_logo" style="background: black; display:block;" /></a>
    <!-- end .header --></div>
  <div class="sidebar1">
    <ul class="nav">
      <li><a href="paginaPrincipal.jsp">P&aacute;gina Principal</a></li>
      <li><a href="/Concessionaria/Concessionaria?operacao=listarCarros&corrente=1">Carros</a></li>            
      <li><a href="#">Cadastrar</a></li>      
    </ul>

    <table width="180" border="0" style="text-align:center">
  <tr>
    <th scope="row" bgcolor="#ADB96E">Login</th>
  </tr>
  <tr>
    <th scope="row"><%=session.getAttribute("logado") %> </th>
  </tr>
  <tr> 
  	<td><a href="/Concessionaria/Concessionaria?operacao=logoff&corrente=1">Logoff</a></td>
  </tr>
</table>

    <!-- end .sidebar1 --></div>
  <div class="content">
    <h1>Cadastrar Carro</h1>
    <form id="form1" name="form1" action="/Concessionaria/Concessionaria" method="post">
    <div class="table_form">
    <table width="698" border="0" style="text-align: left" cellspacing="10px">
      <tr>
        <th width="182" scope="row">Chassi</th>
        <td width="360"><input name="numeroChassi" type="text" dir="ltr" size="60" /></td>
      </tr>
      <tr>
        <th width="182" scope="row">Placa</th>
        <td width="360"><input name="placa" type="text" dir="ltr" size="60" /></td>
      </tr>
      <tr>
        <th width="182" scope="row">Marca</th>
        <td width="360">
        <select name="marca">
        <%
        	Collection<MontadoraBEAN> marcas = new ArrayList<MontadoraBEAN>();
        	marcas = (ArrayList<MontadoraBEAN>)session.getAttribute("listMontadoras");
        	
        	for(MontadoraBEAN mb : marcas){
        %>
        	<option ><%=mb.getNome() %></option>
        <% } %>
        </select>
        </td>
      </tr>
      <tr>
        <th width="182" scope="row">Modelo</th>
        <td width="360"><input name="modelo" type="text" dir="ltr" size="60" /></td>
      </tr>
      <tr>
        <th width="182" scope="row">Pre&ccedil;o</th>
        <td width="360"><input name="preco" type="text" dir="ltr" size="60" /></td>
      </tr>      
      <tr>
        <th width="182" scope="row">Ano</th>
        <td width="360"><input name="ano" type="text" dir="ltr" size="60" /></td>
      </tr>
      <tr>
        <th width="182" scope="row">Cor</th>
        <td width="360"><input name="cor" type="text" dir="ltr" size="60" /></td>
      </tr>
      <tr>
        <th width="182" scope="row">Status</th>
        <td width="360">
       <input name="status" type="radio" value="false" checked /><label>N&atilde;o-vendido</label>
       <input name="status" type="radio" value="true"  /><label>Vendido</label>
        </td>
      </tr>
      <tr></tr>
      <tr>
      <th><input name="enviar" type="submit"  value="Enviar"/></th>   
      </tr>		
      
    </table>        
    </div>
    <input type="hidden" size="3" name="corrente" value="33" />
    </form>
    <p>&nbsp;</p>
    <h2>&nbsp;</h2>
    <!-- end .content --></div>
  <div class="footer">
    <p>    
    </p>
    <!-- end .footer --></div>
  <!-- end .container --></div>
</body>
</html>
